<?php
	class Message extends BaseModel {

		private $idMessage;
		private $userFrom;
		private $userTo;
		private $subject;
		private $message;
		private $sent;

		public function getIdMessage() {
			return $this->idMessage;
		}
		
		public function setIdMessage($value) {
			$this->idMessage = $value;
		}
		
		public function getUserFrom() {
			return $this->userFrom;
		}
		
		public function setUserFrom($value) {
			$this->userFrom = $value;
		}
		
		public function getUserTo() {
			return $this->userTo;
		}
		
		public function setUserTo($value) {
			$this->userTo = $value;
		}
		
		public function getSubject() {
			return $this->subject;
		}
		
		public function setSubject($value) {
			$this->subject = $value;
		}
		
		public function getMessage() {
			return $this->message;
		}
		
		public function setMessage($value) {
			$this->message = $value;
		}
		
		public function getSent() {
			return $this->sent;
		}
		
		public function setSent($value) {
			$this->sent = $value;
		}
		
		public function required() {
			return array(
				"idMessage" => $this->idMessage,
				"userFrom" => $this->userFrom,
				"userTo" => $this->userTo,
				"subject" => $this->subject,
				"message" => $this->message,
				"sent" => $this->sent
			);
		}

		public function json() {
			return array(
				"idMessage" => $this->idMessage,
				"userFrom" => $this->userFrom,
				"userTo" => $this->userTo,
				"subject" => $this->subject,
				"message" => $this->message,
				"sent" => $this->sent
			);
		}

	}